<!--卡片-->
<template>
  <zh-col :span="span" :md="md" :sm="sm" :xs="xs" :lg="lg" :xl="xl" :offset="offset" :push="push" :pull="pull" :tag="tag">
    <zh-card v-bind="allAttrs">
      <template #headerRight>
        <slot name="formHeaderRight"></slot>
      </template>
      <zh-row>
        <slot/>
      </zh-row>
    </zh-card>
  </zh-col>
</template>
<script lang="ts" setup name="zh-form-card">
import { formItemProps, itemProps } from '../lib/mapController';
// 定义属性
const props = defineProps({
	...formItemProps,
	...itemProps,
});

const attrs = useAttrs();
const allAttrs = computed(() => {
	return Object.assign(props.extend, attrs);
});
</script>
